
public class Inhabitant {


	protected int income;
	protected double tax=0.1;
	
	public Inhabitant(){
		
	}
	
	public int taxedIncome(){
		return income;
	}
	
	public int tax(){
		if(income*tax<1) return 1;
		return (int)(income*tax);
	}
	
	public void setIncome(int income){
		this.income=income;
	}

}
